<table>

<!-- Code Issue row -->
<tr>
<% @total_issues = 0 %>
<% @tool_to_count = Hash.new %>
<% for tool in @code_issue_dpd.get_tools %>
   <% @current_count = 0 %>
   <% for data in @code_issue_dpd.get_data(tool) %>
   <% @issue_count = String.new(data.get_value('NumIssues')).to_i %>
     <% @current_count += @issue_count %>
     <% @total_issues += @issue_count %>
   <% end %>
   <% @tool_to_count[tool] = @current_count %>
<% end %>

<td>CodeIssues - <% out = @total_issues %> </td>
</tr>
<tr>
<td><%= image_tag   Gchart.bar(
              :data => [[50], [100]],
              :axis_with_labels => ['y'],
              :axis_labels => [['0', @total_issues/2, @total_issues]],
              :stacked => false, :size => '400x200',
              :bar_colors => ['00FF00', 'FF0000', 'AF0040'],
              :legend => @tool_to_count.keys) %></td>
</tr>

 <!-- Unit Test row -->
 <% @success_count = 0 %>
 <% @fail_count = 0%>
 <% for data in @unit_test_dpd.get_all_data %>
  <% @success_count += String.new(data.get_value('success')).to_i %>
  <% @fail_count += String.new(data.get_value('failure')).to_i %>
 <% end %>
 <tr>
   <td>Unit Test - Successful (<%= @success_count %>), Failed (<%= @fail_count %>)</td>  
 </tr>

<tr><td><%= image_tag   Gchart.bar(
              :data => [@success_count, @fail_count],
              :stacked => false, :size => '400x200',
              :axis_with_labels => ['y'],
              :axis_labels => [['0', @success_count/2, @success_count]],
              :bar_colors => ['00FF00', 'FF0000'],
              :legend => ['Successful', 'Failed']) %></td></tr>

</table>
